﻿using ApisixSDK.Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ApisixSDK.Admin.model
{
    public class StreamRoute : BaseModel
    {
        /// <summary>
        /// 客户端IP地址
        /// </summary>
        [JsonProperty(propertyName: "remote_addr")]
        public string RemoteAddr { get; set; }
        /// <summary>
        /// 服务端IP地址
        /// </summary>
        [JsonProperty(propertyName: "server_addr")]
        public string ServerAddr { get; set; }
        /// <summary>
        /// 服务端端口
        /// </summary>
        [JsonProperty(propertyName: "server_port")]
        public int ServerPort { get; set; }
        /// <summary>
        /// 服务器名称指示 Host
        /// </summary>
        [JsonProperty(propertyName: "sni")]
        public string Sni { get; set; }
        /// <summary>
        /// 上游列表
        /// </summary>
        [JsonProperty(propertyName: "upstream")]
        public Upstream Upstream { get; set; }
    }
}
